Crate remotefs[−][src]
Expand description
remotefs
remotefs is a library that provides a file system structure to work with all the most used file transfer protocols.
This is achieved through a trait called RemoteFs
which exposes methods to operate on the remote file system.
Currently the library exposes a client for Sftp, Scp, Ftp and Aws-s3.
Why remotefs
You might be wondering what’s the reasons behind remotefs. The first reason is to provide an easy way to operate with multiple protocols at the same time. For example, in termscp, this came very handily to me. The second reason is that often, users need to implement just a simple client to operate on a remote file system, and they have to waste a lot of time in understanding how the protocol works just to achieve a single task.
With remotefs this is no more a problem: all you need is to configure the options to connect to the remote host and you’re ready to deal with the remote file system, as it were mounted on your pc.
Get started
First of all you need to add remotefs to your project dependencies:
remotefs = "^0.2.0"
these features are supported:
no-log
: disable logging. By default, this library will log via thelog
crate.
Re-exports
pub use fs::RemoteFs;
Modules
Fs
Structs
A file represents an entity in the file system
RemoteError defines the possible errors available for a file transfer
Enums
RemoteErrorType defines the possible errors available for a file transfer
Type Definitions
Result type returned by a FileTransfer
implementation